const initialState = {
    word: "Hello"
}

export default function store(sate = initialState, action) {
    switch (action.type) {
        case "update-word":
            return {...sate, word: action.payload.word}
        default:
            return sate
    }
}
